package com.yanle.pattern.singleton;

/**
 * @Description: 饿汉模式
 * @Author Richard
 * @Date 2018/4/11 14:41
 */
public class BetterHungrySingleton {
    private static BetterHungrySingleton instance = null;

    static {
        instance = new BetterHungrySingleton();
    }

    private BetterHungrySingleton() {
    }

    public static BetterHungrySingleton getInstance() {
        return instance;
    }
}
